home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / Clipboard.p < prev    next >
Text File  |  1996-05-01  |  2KB  |  80 lines

  1. {
  2.      File:        Clipboard.p
  3.  
  4.      Contains:    Clipboard Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 8
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Clipboard;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CLIPBOARD__}
  28. {$SETC __CLIPBOARD__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ClipboardIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __SCRAP__}
  38. {$I Scrap.p}
  39. {$ENDC}
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45. {$IFC FOR_SYSTEM8_PREEMPTIVE }
  46. {
  47. _________________________________________________________________________________________________________
  48.  * ERRORS
  49. _________________________________________________________________________________________________________
  50. }
  51.  
  52. CONST
  53.     kClipboardEmptyErr            = -1000;
  54.     kClipboardScrapNotFoundErr    = -1001;
  55.  
  56. {
  57. _________________________________________________________________________________________________________
  58.  * PUTTING A SCRAP ON THE CLIPBOARD
  59. _________________________________________________________________________________________________________
  60. }
  61. FUNCTION PutScrapOnClipboard(theScrap: ScrapRef): OSStatus; C;
  62. {
  63. _________________________________________________________________________________________________________
  64.  * GETTING A SCRAP FROM THE CLIPBOARD
  65. _________________________________________________________________________________________________________
  66. }
  67. FUNCTION GetScrapFromClipboard(VAR theScrap: ScrapRef): OSStatus; C;
  68. FUNCTION ReleaseClipboardScrap(theScrap: ScrapRef): OSStatus; C;
  69. {$ENDC}
  70. {$ALIGN RESET}
  71. {$POP}
  72.  
  73. {$SETC UsingIncludes := ClipboardIncludes}
  74.  
  75. {$ENDC} {__CLIPBOARD__}
  76.  
  77. {$IFC NOT UsingIncludes}
  78.  END.
  79. {$ENDC}
  80.